$(document).ready(function() {
	$("#improve-0-link > a").click(function(e) { improveVid(e, 0); });
	$("#improve-1-link > a").click(function(e) { improveVid(e, 1); });
});

function improveVid(e, slot) {
	e.stopPropagation();
	if (vid[slot].vidId) {
		$("#improve-" + slot + "-panel").hide().load("index.php?m=improve&t=panel&id=" + vid[slot].vidId, function(){
			$(this).fadeIn();
		});
	} else {
		printMsg("No video loaded..", 1);
	}
}
